
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
<f:metadata>
	<f:viewParam name="name" value="#{name}" />
</f:metadata>
<h:head>
	<title>ACC</title>
	<link href="#{facesContext.externalContext.requestContextPath}/style/style.css"  rel="stylesheet" type="text/css" />
	<link href="#{facesContext.externalContext.requestContextPath}/style/jquery_ui.css"  rel="stylesheet" type="text/css" />
	<link rel="stylesheet"
		href="#{facesContext.externalContext.requestContextPath}/style/jquery.treeview.css" />
	<link rel="stylesheet"
		href="#{facesContext.externalContext.requestContextPath}/style/screen.css" />

	<script
		src="#{facesContext.externalContext.requestContextPath}/js/jquery.js"
		type="text/javascript"></script>
	<script
		src="#{facesContext.externalContext.requestContextPath}/js/jquery.cookie.js"
		type="text/javascript"></script>
	<script
		src="#{facesContext.externalContext.requestContextPath}/js/jquery.treeview.js"
		type="text/javascript"></script>

	<h:outputScript name="jquery_1.7.js" library="js" />
	<link href="images/accc.png" rel="shortcut icon" />
	<link rel="stylesheet" type="text/css" href="#{facesContext.externalContext.requestContextPath}/style/jquery_ui.css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1/jquery-ui.min.js"></script>
<script type="text/javascript">
$(function() {
$(".tabmenu").removeClass("hidden");
$(".tabs h2").addClass("hidden");
$(".tabs").tabs();
});
</script>
	
<!--	<h:outputStylesheet library="css" name="menuApproval.css" />
	<h:outputStylesheet library="css" name="main.css" />
	
	<h:outputScript name="openWin.js" library="approve/js" /> 
	<h:outputScript name="main.js" library="approve/js" />  	
	<h:outputStylesheet library="menuCss" name="approve.css" /> 
	<h:outputStylesheet library="project/css" name="main.css" />
	<h:outputStylesheet library="project/css" name="form.css" /> 
	<h:outputStylesheet library="css" name="uploadImage.css" />
	<h:outputStylesheet library="css" name="company.css" />
	<h:outputStylesheet library="css" name="accountant.css" />
	<h:outputStylesheet library="css" name="profile.css" />
	<h:outputStylesheet library="css" name="product.css" />
	<h:outputStylesheet library="css" name="store.css" />   -->
	
	<h:outputScript name="jquery-ui-1.8.16.custom.min.js" library="js" />
	<h:outputScript name="checkEnter.js" library="validation" />
	<h:outputScript name="general.js" library="validation" />

	 
	<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/jquery.cookie.js" type="text/javascript"></script>
<script src="js/jquery.treeview.js" type="text/javascript"></script>

<script type="text/javascript">
		$(function() {
			$("#tree").treeview({
				collapsed: true,
				animated: "medium",
				control:"#sidetreecontrol",
				persist: "location"
			});
		})
		
	</script>
	

	<script>
		var accessDB = "#{!empty sessionScope['accessDB']}";
		if (accessDB == "true") {
			if ("#{sessionScope['dbName']}" != "#{name}") {
				document.location = "/#{name}/acc";
			}
		}
	</script>
	
	<script>
		function checkLogin() {
			var emp = "#{!empty sessionScope['Employee']}";
			var accessDB = "#{!empty sessionScope['accessDB']}";
			if (accessDB == "false") {
				reDirectToAccessDB();
			} else if (emp == "false")
				reDirectToLoginBean();
		}
		
		function setUrl() {

		}
		
		$('document').ready(function() {
				    
			$('#srcImage').error(function() {
				$('#srcImage').attr("src",'#{facesContext.externalContext.requestContextPath}/images/nophoto.png');
			});
			$('#srcImage').attr("src", '#{link.logo}');
			
			
		});
		
	</script>
	
	
</h:head>

<h:body>
	<div id="mainframe">
		<div id="header">
			<div class="logo">
				<img width="230px" height="60px" id="srcImage"/>
			</div>
			<h:form>
				<div class="account">
					<ul>
						<li><span><img src="#{facesContext.externalContext.requestContextPath}/images/icon_06.png" />
							<h:outputText rendered="#{!empty sessionScope['Employee']}"
								value="#{utilInitLang.ac_Welcome } : #{sessionScope['Employee'].userName}" />
							</span>
						</li>
						<li><span><img src="#{facesContext.externalContext.requestContextPath}/images/icon_08.png" />
							<h:commandLink rendered="#{!empty sessionScope['Employee']}"
								value="#{utilInitLang.logout }"
								action="#{loginUS.logout}" /></span></li>
						<li class="flag paddingf">
							<span>
								<h:commandLink actionListener="#{languageBean.changeLanguage}" title="English">
									<f:attribute name="language" value="EN"></f:attribute>
									<img src="#{facesContext.externalContext.requestContextPath}/images/flag_10.gif"
										alt="English" />
								</h:commandLink>
							</span>
							</li>
						<li class="flag">
							<span>
							<h:commandLink actionListener="#{languageBean.changeLanguage}" title="Vietnamese">
								<img src="#{facesContext.externalContext.requestContextPath}/images/flag_12.gif" alt="Vietnamese" />
								<f:attribute name="language" value="VN"></f:attribute>
							</h:commandLink>
							</span>
						</li>
						<li class="flag">
							<span>
							<h:commandLink actionListener="#{languageBean.changeLanguage}" title="Korean">
								<img src="#{facesContext.externalContext.requestContextPath}/images/flag_14.gif" alt="Korean" />
								<f:attribute name="language" value="KR"></f:attribute>
							</h:commandLink>
							</span>
						</li>
					</ul>
				</div>
			</h:form>
			<!--end account-->
		</div>
		<!--end header-->
		<table class="mainf" width="100%" border="0" cellspacing="0"
			cellpadding="3">
			<tr>
				<td width="240" bgcolor="#D7D9DD">
					<ui:include src="accmenuleft.xhtml" />
					<!--end menuvar-->
				</td>
				<td  style="vertical-align:top">
					<div id="contains">
					<div class="title"></div>
					<div class="body">	<ui:insert name="body">
						Body content missed
					</ui:insert></div>
					<div id="footer" >
						<div id="copyright">
							<div>2011 Elisoft Company - All rights Reserved</div>
						</div>
					</div>
					</div>
					
				</td>
			</tr>
		</table>
	</div>
</h:body>
</html>